chcon-rcommand

RecursivelychangeSELinuxsecuritycontext.Use-Roptiontochangethesecuritycontextofallfilesinthedirectoryrecursivelyusingthefollowingsyntax.,2024年5月24日—Iusethe'chcon'commandtochangethesecuritycontextofafile:ls-lZfoo.txt-rw-r--r--.,ThechconcommandchangestheSELinuxcontextforfiles.However,changes...Copied!~]$chcon-thttpd_sys_content_tfile-name.Runthechcon-R-ttype ...,CHCON(1)UserCommandsCHCON(1).N...

chcon command for change the security context of a file or ...

Recursively change SELinux security context. Use -R option to change the security context of all files in the directory recursively using the following syntax.

Intro To 'chcon' Command In Linux

2024年5月24日 — I use the 'chcon' command to change the security context of a file: ls -lZ foo.txt -rw-r--r--.

4.7. SELinux Contexts

The chcon command changes the SELinux context for files. However, changes ... Copied! ~]$ chcon -t httpd_sys_content_t file-name. Run the chcon -R -t type ...

chcon(1)

CHCON(1) User Commands CHCON(1). NAME top. chcon - change file security context. SYNOPSIS top. chcon [OPTION]... CONTEXT FILE... chcon [OPTION].

chcon invocation (GNU Coreutils 9.5)

If --recursive ( -R ) is specified and a command line argument is a symbolic link to a directory, traverse it. See Traversing symlinks. ' -L ' ¶. In a recursive ...

5.6. SELinux Contexts

Run the chcon -R -t type directory-name command to change the type of the directory and its contents, where type is a type, such as httpd_sys_content_t ...

chcon - 修改对象(文件)的安全上下文

--reference=参考文件:使用指定参考文件的安全环境,而非指定值。 -R, --recursive:递归处理所有的文件及子目录。 -v, --verbose:为处理的所有文件 ...

Explanation of the chcon command

2013年7月5日 — chcon - change file security context; you can check any security context of a file with ls -Z . · -R - operate on files and directories ...

chcon(1): change file SELinux security context

The following options modify how a hierarchy is traversed when the -R option is also specified. If more than one is specified, only the final one takes effect.

chcon 命令详解

-R, --recursive:递归处理所有的文件及子目录。 -v, --verbose:为处理的所有文件显示诊断信息。